﻿using SF.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SF.Ucenter.admin.goods
{
    public partial class scale_list : Web.UI.ManagePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Model.manager mgr = Session[DTKeys.SESSION_ADMIN_INFO] as Model.manager;
                string busnieseNum = mgr.busnieseNum.ToString();
                string appNum = Session[DTKeys.SESSION_APP_INFO].ToString();
                string templatesNum = Session[DTKeys.SESSION_TEMPLATES_INFO].ToString();
                RptBind("id>0 and " + Utils.getWhereByInfo(busnieseNum, appNum, templatesNum));
            }
        }

        #region 数据绑定=================================
        private void RptBind(string _strWhere)
        {
            BLL.sf_manager_scale scaleBll = new BLL.sf_manager_scale();
            this.rptList.DataSource = scaleBll.GetList(_strWhere);
            this.rptList.DataBind();
        }
        #endregion
    }
}